
# 下面给定了一大段话，请按空格符或者换行符进行分割，并将分割后的每个单词放入列表，统计每个单词的出现次数，最终输出统计的结果。(提示：保存长字符串使用三对双引号”””......”””或者三对单引号’’’......’’’即可)

text="""I have a pen I have an apple Uh apple pen I have a pen 
I have pineapple Uh pineapple pen Apple pen pineapple pen Uh pen pineapple apple pen
Pen pineapple apple pen Dance time Pineapple pine pine pineapple 
Pineapple apple apple pineapple Pineapple apple apple pineapple apple Pineapple pine pine pineapple
 I have a pen I have a pen Uh long pen I have an apple 
 I have pineapple Uh apple pineapple Long pen apple pineapple Uh pen pineapple apple pen"""
words=text.split()
word_count={}
for word in words:
    if word in word_count:
        word_count[word] += 1
    else:
        word_count[word] = 1

for word,count in word_count.items():
            print(f"{word}:{count}")
